PARSER=parser
SSVR=search_server
HTTP_SVR= http_server
cc=g++

.PHONY:all
all:$(PARSER) $(SSVR) $(HTTP_SVR)

$(PARSER):parser.cc
	$(cc) -o $@ $^ -std=c++11  -lboost_system -lboost_filesystem
$(SSVR):server.cc
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp
$(HTTP_SVR):http_server.cc
	$(cc) -o $@ $^ -std=c++11 -ljsoncpp -lpthread

.PHONY:clean
clean:
	rm -f $(PARSER) $(HTTP_SVR) $(SSVR)